<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>乘法口诀表</title>
  <style>
    span{
      display: inline-block;
      width: 75px;
      padding: 5px 15px;
      bottom: 1px solid black;
      margin: 2px;
      border-radius: 5px;
      box-shadow: 2px 2px 2px black;
    }
  </style>
</head>
<body>
  <script>

function wa(){//封装函数

      for (let i = 1; i <=9; i++ ){
    for ( let j = 1; j <= i; j++){
      document.write (`<span>${j} X ${i} = ${i * j}</span> `)
    }
    document.write ('<br>')
  }

}
//调用
wa()
wa()
  </script>
</body>
</html>